package com.yc.hotel.config;
//package com.yc.fresh.config;
//
//import java.util.ArrayList;
//import java.util.List;
//
//import org.springframework.boot.web.servlet.FilterRegistrationBean;
//import org.springframework.context.annotation.Bean;
//import org.springframework.context.annotation.Configuration;
//
//import com.yc.fresh.filter.BusRefreshFilter;
//
//@Configuration
//public class FilterConfig {
//
//	@Bean
//	public FilterRegistrationBean<BusRefreshFilter> filterRegistrationBean(){
//		FilterRegistrationBean<BusRefreshFilter> registrationBean = new FilterRegistrationBean<BusRefreshFilter>();
//		registrationBean.setFilter(new BusRefreshFilter());
//		
//		List<String> urlList = new ArrayList<String>();
//		urlList.add("/*");
//		
//		registrationBean.setUrlPatterns(urlList);
//		registrationBean.setName("BusRefreshFilter");
//		registrationBean.setOrder(1);
//		return registrationBean;
//	}
//}
